<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/validate.js"></script>
<link href="/lottery/css/lottery.css" type="text/css" rel="stylesheet" />
<title>答题抽奖系统</title>
</head>
<body>
<center>
<table class="topbg">
	<tr>
    <td>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="<c:url value="/index.do"/>">
		<img alt="logo" src="/lottery/images/younger_logo.gif"/>
	</a>
	
	</td>
    <td align="right">
    <c:if test="${empty userSession.user}" >
      <a href="<c:url value="/login.do"/>"><img border="0"  src="/lottery/images/dl.gif" /></a>
      &nbsp;&nbsp;
      <a href="<c:url value="/reg.do"/>"><img border="0"  src="/lottery/images/reg.gif" /></a>
	</c:if>

	<c:if test="${!empty userSession.user}" >
	     	用户 <c:out value="${userSession.user.username}"/>
      <a href="<c:url value="/editUser.do"/>"><img border="0" src="/lottery/images/o.jpg" /></a>
      &nbsp;&nbsp;
      <a href="<c:url value="/signoff.do"/>"><img border="0" src="/lottery/images/signoff.gif" /></a>
	</c:if>
    </td>
    <td>&nbsp;&nbsp;</td>
  </tr>
</table>
</center>